"""Added nullable True to strain type

Revision ID: c22d39ffb631
Revises: a904af72934b
Create Date: 2023-12-20 15:45:22.333614

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "c22d39ffb631"
down_revision = "a904af72934b"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "product",
        "strain_type",
        existing_type=sa.Enum("indica", "sativa", "indica_dominant", "sativa_dominant", name="straintype"),
        nullable=True,
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "product",
        "strain_type",
        existing_type=sa.Enum("indica", "sativa", "indica_dominant", "sativa_dominant", name="straintype"),
        nullable=False,
    )
    # ### end Alembic commands ###
